using UnityEngine;

public class AnimatorTrigger : MonoBehaviour
{
	public Animator animator;

	public AnimationClip animationClip;

	private void OnTriggerEnter2D(Collider2D collision)
	{
		animator.Play(animationClip.name);
	}
}
